package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsInvAp;
import com.yudean.esb.mapper.erp.ErpIdsInvApMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsInvApDao {

    @Resource
    public ErpIdsInvApMapper erpIdsInvApMapper;

    public int insertSelective(ErpIdsInvAp record) {
        return erpIdsInvApMapper.insertSelective(record);
    }

    public int batchInsertInvApData(List<ErpIdsInvAp> erpIdsInvApList) {
        return erpIdsInvApMapper.batchInsertInvApData(erpIdsInvApList);
    }

    public int deleteInvApByControlId(long controlId) {
        return erpIdsInvApMapper.deleteInvApByControlId(controlId);
    }
}
